package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TTeacherInfoMapper;
import com.ruoyi.system.domain.TTeacherInfo;
import com.ruoyi.system.service.ITTeacherInfoService;

/**
 * 老师信息Service业务层处理
 * 
 * @author Bandit
 * @date 2022-11-01
 */
@Service
public class TTeacherInfoServiceImpl implements ITTeacherInfoService 
{
    @Autowired
    private TTeacherInfoMapper tTeacherInfoMapper;

    /**
     * 查询老师信息
     * 
     * @param id 老师信息主键
     * @return 老师信息
     */
    @Override
    public TTeacherInfo selectTTeacherInfoById(Long id)
    {
        return tTeacherInfoMapper.selectTTeacherInfoById(id);
    }

    /**
     * 查询老师信息列表
     * 
     * @param tTeacherInfo 老师信息
     * @return 老师信息
     */
    @Override
    public List<TTeacherInfo> selectTTeacherInfoList(TTeacherInfo tTeacherInfo)
    {
        return tTeacherInfoMapper.selectTTeacherInfoList(tTeacherInfo);
    }

    /**
     * 新增老师信息
     * 
     * @param tTeacherInfo 老师信息
     * @return 结果
     */
    @Override
    public int insertTTeacherInfo(TTeacherInfo tTeacherInfo)
    {
        return tTeacherInfoMapper.insertTTeacherInfo(tTeacherInfo);
    }

    /**
     * 修改老师信息
     * 
     * @param tTeacherInfo 老师信息
     * @return 结果
     */
    @Override
    public int updateTTeacherInfo(TTeacherInfo tTeacherInfo)
    {
        return tTeacherInfoMapper.updateTTeacherInfo(tTeacherInfo);
    }

    /**
     * 批量删除老师信息
     * 
     * @param ids 需要删除的老师信息主键
     * @return 结果
     */
    @Override
    public int deleteTTeacherInfoByIds(Long[] ids)
    {
        return tTeacherInfoMapper.deleteTTeacherInfoByIds(ids);
    }

    /**
     * 删除老师信息信息
     * 
     * @param id 老师信息主键
     * @return 结果
     */
    @Override
    public int deleteTTeacherInfoById(Long id)
    {
        return tTeacherInfoMapper.deleteTTeacherInfoById(id);
    }
}
